package com.xyw.code.bus.center.service;

import com.rabbitmq.client.Channel;
import com.xyw.code.bus.common.entity.form.SendMessageForm;
import org.springframework.amqp.core.Message;

/**
 * Created with IntelliJ IDEA.
 * User: xuyiwei
 * Date: 2020/2/20
 * Time: 下午8:40
 * Email: 1328312923@qq.com
 * Description: No Description
 **/
public interface ICommonMessageService {

    /**
     * 第一种处理消息失败的方式
     * @param message
     * @param channel
     */
    void dealFailMessage(Message message, Channel channel);

    /**
     * 借助数据库处理失败的消息
     * @param sendMessageForm
     */
    void dealFailMessage(SendMessageForm sendMessageForm);
}
